package com.jiechuang.user.remote;

import com.jiechuang.user.remote.fallback.OrderServerFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "order",fallback = OrderServerFallBack.class)
public interface OrderServer {
    @RequestMapping(value = "/test/{name}",method = RequestMethod.GET)
    String order(@PathVariable String name);
}
